<form nz-form [formGroup]="validateForm" (ngSubmit)="submitForm()">

  <div nz-row>
    <div nz-col [nzSpan]="12">
      <nz-form-item>
        <nz-form-label [nzSm]="10" [nzXs]="24" nzRequired nzFor="stock">股票代码/名称</nz-form-label>

        <nz-form-control [nzSm]="14" [nzXs]="24" *ngIf="this.isregister">
          <nz-input-group [nzSuffix]="suffixIcon">
            <input placeholder="搜索股票代码/名称" nz-input formControlName="stock" (ngModelChange)="onChange($event)" [nzAutocomplete]="auto"
            />
          </nz-input-group>
          <ng-template #suffixIcon>
            <i class="anticon anticon-search"></i>
          </ng-template>
          <nz-autocomplete #auto [ngStyle]="{ position: 'absolute' }">
            <nz-auto-option *ngFor="let option of options" [nzValue]="option.category">
              {{option.value}}
              <span class="global-search-stock-code">{{option.count}}</span>
            </nz-auto-option>
          </nz-autocomplete>
        </nz-form-control>

        <nz-form-control [nzSm]="14" [nzXs]="24" *ngIf="!this.isregister">
          <input nz-input id="stock" formControlName="stock">
        </nz-form-control>

      </nz-form-item>
    </div>
    <div nz-col [nzSpan]="12">
      <nz-form-item>
        <nz-form-label [nzSm]="10" [nzXs]="24" nzFor="proportion_1">周期1权利金比例(%)</nz-form-label>
        <nz-form-control [nzSm]="14" [nzXs]="24">
          <input nz-input id="proportion_1" formControlName="proportion_1" placeholder="请输入周期1权利金比例(%)">
        </nz-form-control>
      </nz-form-item>
    </div>
  </div>

  <div nz-row>
    <div nz-col [nzSpan]="12">
      <nz-form-item>
        <nz-form-label [nzSm]="10" [nzXs]="24" nzFor="proportion_2">周期2权利金比例(%)</nz-form-label>
        <nz-form-control [nzSm]="14" [nzXs]="24">
          <input nz-input id="proportion_2" formControlName="proportion_2" placeholder="周期2权利金比例(%)">
        </nz-form-control>
      </nz-form-item>
    </div>
    <div nz-col [nzSpan]="12">
      <nz-form-item>
        <nz-form-label [nzSm]="10" [nzXs]="24" nzFor="proportion_3">周期3权利金比例(%)</nz-form-label>
        <nz-form-control [nzSm]="14" [nzXs]="24">
          <input nz-input id="proportion_3" formControlName="proportion_3" placeholder="周期3权利金比例(%)">
        </nz-form-control>
      </nz-form-item>
    </div>
  </div>

  <div nz-row>
    <div nz-col [nzSpan]="12">
      <nz-form-item>
        <nz-form-label [nzSm]="10" [nzXs]="24" nzFor="proportion_4">周期4权利金比例(%)</nz-form-label>
        <nz-form-control [nzSm]="14" [nzXs]="24">
          <input nz-input formControlName="proportion_4" id="proportion_4" placeholder="周期4权利金比例(%)">
        </nz-form-control>
      </nz-form-item>
    </div>
    <div nz-col [nzSpan]="12">
      <nz-form-item>
        <nz-form-label [nzSm]="10" [nzXs]="24" nzFor="proportion_5">周期5权利金比例(%)</nz-form-label>
        <nz-form-control [nzSm]="14" [nzXs]="24">
          <input nz-input formControlName="proportion_5" id="proportion_5" placeholder="周期5权利金比例(%)">
        </nz-form-control>
      </nz-form-item>
    </div>
  </div>

  <div nz-row>
    <div nz-col [nzSpan]="12">
      <nz-form-item>
        <nz-form-label [nzSm]="10" [nzXs]="24" nzFor="proportion_6">周期6权利金比例(%)</nz-form-label>
        <nz-form-control [nzSm]="14" [nzXs]="24">
          <input nz-input formControlName="proportion_6" id="proportion_6" placeholder="周期6权利金比例(%)">
        </nz-form-control>
      </nz-form-item>
    </div>
    <div nz-col [nzSpan]="12">
      <nz-form-item>
        <nz-form-label [nzSm]="10" [nzXs]="24" nzRequired>询价模式</nz-form-label>
        <nz-form-control [nzSm]="14" [nzXs]="24">
          <nz-select formControlName="inquirymodal">
            <nz-option nzValue="jack" nzLabel="Jack"></nz-option>
            <nz-option nzValue="lucy" nzLabel="Lucy"></nz-option>
          </nz-select>
        </nz-form-control>
      </nz-form-item>
    </div>
  </div>

  <div nz-row>
    <div nz-col [nzSpan]="12">
      <nz-form-item>
        <nz-form-label [nzSm]="10" [nzXs]="24" nzFor="origin">来源分组</nz-form-label>
        <nz-form-control [nzSm]="14" [nzXs]="24">
          <input nz-input formControlName="origin" id="origin" placeholder="请输入来源分组">
        </nz-form-control>
      </nz-form-item>
    </div>
    <div nz-col [nzSpan]="12">
      <nz-form-item>
        <nz-form-label [nzSm]="10" [nzXs]="24" nzFor="sort">排序</nz-form-label>
        <nz-form-control [nzSm]="14" [nzXs]="24">
          <input nz-input formControlName="sort" id="sort" placeholder="请输入排序">
        </nz-form-control>
      </nz-form-item>
    </div>
  </div>

</form>